package com.algernoon.rpc.springrpc.rmi.hessian;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.caucho.HessianProxyFactoryBean;

@Configuration
public class HessianRmiClientConfig {

	@Bean
	public HessianProxyFactoryBean initHessianProxyFactoryBean() {
		HessianProxyFactoryBean factoryBean = new HessianProxyFactoryBean();
		factoryBean.setServiceUrl("http://localhost:8080/hessianUserService");
		factoryBean.setServiceInterface(IHessianUserService.class);
        return factoryBean;
	}
	
}
